Skip to content

Add regression tests for POLYGON pad shape components - #381

Open
fengfirewudi wants to merge 2 commits into
tscircuit:mainfrom
fengfirewudi:fix/add-polygon-pad-regression-tests
Open

Add regression tests for POLYGON pad shape components#381
fengfirewudi wants to merge 2 commits into
tscircuit:mainfrom
fengfirewudi:fix/add-polygon-pad-regression-tests

Conversation

@fengfirewudi

Copy link
Copy Markdown

Summary

  • Add test cases and snapshots for components C5360621, C2879853, and C9900014805
  • These components use POLYGON pad shapes which are already supported in the codebase
  • Tests verify that parsing and TSX conversion work correctly for all three parts

Context

Issues #218, #239, and #240 reported that these JLCPCB parts failed to import with the error:

Invalid enum value. Expected 'RECT' | 'ELLIPSE' | 'OVAL', received 'POLYGON'

POLYGON pad shape support has since been added to the schema and conversion logic. These tests confirm the fix and prevent regressions.

Closes #218
Closes #239
Closes #240

Test plan

  • All three new test files pass (bun test)
  • Full test suite passes (101 tests, only pre-existing C472489 timeout)
  • 3D snapshots generated correctly for all components

Add test cases for C5360621, C2879853, and C9900014805 which previously
failed to import due to POLYGON not being recognized as a valid pad shape.
These components now parse and convert correctly with existing POLYGON
support.

Closes tscircuit#218, closes tscircuit#239, closes tscircuit#240
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[C2879853] Failed to import from JLCPCB [C9900014805] Failed to import from JLCPCB [C5360621] Failed to import from JLCPCB

1 participant